package model

import (
	"github.com/jinzhu/gorm"
)

// Organization 组织模型
type Organization struct {
	gorm.Model
	UID       string
	Name      string
	Intro     string
	Avatar    string
	Score     uint
	ParentID  string `gorm:"default:'1pHA3TcpgvpLzL6OiYfSRpTKCKw'"`
	Head      string
	CreatedBy string
	// Users     []*User `gorm:"many2many:organization_users;foreignKey:UID;joinForeignKey:UID;References:UID;JoinReferences:UID"`
}
